package com.bw.user.mvvm.model;

import com.bw.user.mvvm.model.entity.ConfirmEntity;
import com.bw.user.mvvm.model.entity.LoginEntity;
import com.bw.user.mvvm.model.entity.OrderListEntity;
import com.bw.user.mvvm.model.entity.RegisterEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/19 0019 下午 6:25
 *
 */
interface Api {
    @POST("userCenter/login")
    Observable<LoginEntity> requestlogin(@Body RequestBody body);
    @POST("userCenter/register")
    Observable<RegisterEntity> requestregist(@Body RequestBody body);
    @POST("order/getOrderList")
    Observable<OrderListEntity> requestgetOrderList(@Body RequestBody body);
    @POST("order/confirm")
    Observable<ConfirmEntity> requestgetconfirm(@Body RequestBody body);

}
